package com.pattern.create.singleton.lazy;

public class Singleton1 {

    private static Singleton1 instance = null;

    private Singleton1() {
    }

    public synchronized static Singleton1 getInstance() {
        if (instance == null) {
            instance = new Singleton1();
            return instance;
        }
        return instance;
    }
}
